<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ page import="com.manager.util.CONSTANT" %>
<%
	String baseUrl = request.getContextPath().toLowerCase();//上下文根路径
	String forwardUrl = null;
	String url = request.getParameter("url");
	Object obj = session.getAttribute(CONSTANT.SESSION_KEY);
	
	if(obj != null){//已登录
		forwardUrl = "base/main.jsp";
	}else{//未登录
		forwardUrl = "/login.jsp";
	}
	request.getRequestDispatcher(forwardUrl).forward(request, response);
%>

